package com.rtp.transformer.parser.filter;

import java.io.InputStream;
import java.util.List;

import com.rtp.transformer.parser.model.FormatConfig;

 
/**
 * Filter when read inputstream as a List
 * @author bertzhao
 *
 */
public interface ReaderParseFilter {

	/**
	 * Before process convert message to another
	 * @param fc husband configuration
	 * @param message husband inputStream before convert
	 * @return husband inputStream after convert
	 */
	public InputStream beforeProcess(FormatConfig fc,InputStream message);
	
	/**
	 * After process result message to another
	 * @param fc husband configuration
	 * @param result husband pojo list before convert
	 * @return husband pojo list after convert
	 */
	public List afterProcess(FormatConfig fc,List result);
}
